package cn.mw.cmdb.virtualization.dto.unicloud;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.List;

/**
 * @author gengjb
 * @description 紫光云存储DTO
 * @date 2024/6/24 16:29
 */
@Data
@XmlRootElement(name = "list")
@XmlAccessorType(XmlAccessType.FIELD)
public class UniCloudStorageDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @XmlElement(name = "storagePool")
    private List<Storage> storages;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Storage implements Serializable {

        private static final long serialVersionUID = 1L;

        @XmlElement(name = "name")
        private String name;

        @XmlElement(name = "totalSizeFormat")
        private String totalSizeFormat;

        @XmlElement(name = "freeSizeFormat")
        private String freeSizeFormat;

        @XmlElement(name = "totalSize")
        private Long totalSize;

        @XmlElement(name = "freeSize")
        private Long freeSize;
    }
}
